<?php return [

    'key' => '8Ni.Dx+1f^7-HE=d',

    'im' => [
        'admins' => [
            // 管理员列表 用户名=>密码
            'admin' => '123456'
        ],
    ],

    'server' => [

        // 服务IP 0.0.0.0为本机全部IP
        'listen_address' => '0.0.0.0',
        // 服务端口 多个IM服务之间需要不同端口
        'listen_port' => 9902,

        #'enable_ssl' => false,
        #'ssl_method' => ,
        #'ssl_key_file' => ,
        #'ssl_cert_file' => ,
        #'ssl_verify_depth' => ,
        #'ssl_client_cert_file' => ,

        #'pid_file' => __FILE__ . '.pid',
        #'daemonize' => true,

        #'reactor_num' => ,
        #'worker_num' => ,
        #'max_request' => 0,
        #'max_connection' => ,

        #'task_worker_num' => 2,
        #'task_ipc_mode' => 1,
        #'task_max_request' => 0,
        #'task_tmpdir' => '/tmp',
        #'message_queue_key' => ,

        #'user' => ,
        #'group' => ,
        #'chroot' => ,

        'log_file' => './im-logs',
        'log_level' => 0,

        #'heartbeat_idle_time' => 250,
        #'heartbeat_check_interval' => 60,

        #'package_max_length' => 2*1024*1024,
        #'pipe_buffer_size' => 32*1024*1024,
        #'buffer_input_size' => 4*1024*1024,
        #'buffer_output_size' => 4*1024*1024,

        #'backlog' => 128,
        #'open_tcp_nodelay' => true,
        #'tcp_defer_accept' => ,
        #'enable_reuse_port' => ,

        #'open_cpu_affinity' => ,
        #'cpu_affinity_ignore' => ,

        'flash_policy' => [
            #'enable_policy' => false,
            #'policy_port'   => 843,
            /*'policy_xml' => '<?xml version="1.0"?><cross-domain-policy><site-control permitted-cross-domain-policies="all"/><allow-access-from domain="*" to-ports="*"/></cross-domain-policy>',*/

        ]
    ],

    'redis' => [
        // redis 参数配置
        'host' => '127.0.0.1',
        'port' => 6390,
        'key_expire' => [
            'default' => 604800
        ],
    ],

    'mysql' => [
        // mysql 参数配置
        //'unix_socket' => null,
        'host' => '127.0.0.1',
        //'port' => null,
        'database' => 'phpwebim',
        'username' => 'root',
        'password' => '159456',//5f7d88affa69964b
        'charset'  => 'utf8mb4',
        'collate'  => 'utf8mb4_general_ci',
        'prefix'   => 'im_',
    ],

    'jpush' => [
        'enable' => false,
        //'key' => '',
        //'secret' => ''
    ],
];
